package com.xgg.taiwuinfo.gongfa.base;

import android.content.Context;

import com.xgg.taiwuinfo.R;
import com.xgg.taiwuinfo.gongfa.abilities.Ability_Neigong_Grid;
import com.xgg.taiwuinfo.utils.GongfaType;

abstract public class Gongfa_Neigong extends Gongfa
{
    public Gongfa_Neigong(String name , int level , int element ,int inherit , int[] grids)
    {
        super(name,level,element, GongfaType.TYPE_NEIGONG , inherit);
        ability_neigongGrid = new Ability_Neigong_Grid(grids) ;
    }

    //内功格子分配
    final Ability_Neigong_Grid ability_neigongGrid ;

    @Override
    public String getTypeString(Context ctx)
    {
        return ctx.getString(R.string.type_neigong);
    }

    public int getGridCuipo()  {
        return ability_neigongGrid.getGridCuipo();
    }
    public int getGridQingling()  {
        return ability_neigongGrid.getGridQingling();
    }
    public int getGridHuti()  {
        return ability_neigongGrid.getGridHuti();
    }
    public int getGridQiqiao()  {
        return ability_neigongGrid.getGridQiqiao();
    }
    public int getGridWanyong()  {
        return ability_neigongGrid.getGridWanyong();
    }
}
